<?php /*
Consider one array of values $a = array(2,1,4,5,7,3,7,8,3,4,90,2,45,67,32,58,34,89,56,12,34,56,78,90,34,23,45,67,89,13,14,16,17,18,24,26,27,29,31,37,30,4,57,73,82,91,03,73,83,93,04,99);
Split this input array into two arrays odd and even values and tell me which is more in number odd or even?

*/
error_reporting(0);?>
<?php
 $a = array(2,1,4,5,7,3,7,8,3,4,90,2,45,67,32,58,34,89,56,12,34,56,78,90,34,23,45,67,89,13,14,16,17,18,24,26,27,29,31,37,30,4,57,73,82,91,03,73,83,93,04,99);
 $count = count($a);
 $even=''; $odd=''; $i=0;
 $counter=0; $counter1=0;
 //print_r($count);
 for($i=0; $i<=$count; $i++)
 {
    if($a[$i]%2==0)
	{
	$even.=$a[$i]; 
	$counter++;
	
	}
	else
	{
	$odd.=$a[$i];
	$counter1++;
	}
	
 }
  echo 'Even Numbers : ' . $counter.'<br>';
  echo 'odd Numbers : ' .$counter1.'<br>';
  if($counter>$counter1)
	  {
	  echo 'More in even number';
	  }
  else
	  {
	   echo 'More in odd number';
	  }
 ?>